@primary-color: #1EB7D8;
@secondary-color: #D4E9FC;
@accent-color: #ECFFF9;
@dark-color: #169DBD;

.student-profile {
  min-height: 100vh;
  background-color: #F7FBFD;
  font-family: 'Arial Rounded MT Bold', 'Microsoft YaHei', sans-serif;
  padding-bottom: 100px;

  .profile-navbar {
    background-color: @secondary-color;
    
    .adm-nav-bar-title {
      color: @primary-color;
      font-weight: bold;
      font-size: 18px;
    }
  }

  .profile-content {
    padding:10px 16px 16px 16px;

    .info-card {
      border-radius: 16px;
      margin-bottom: 24px;
      transition: all 0.3s ease;

      &:hover {
        box-shadow: 0 8px 20px rgba(30, 183, 216, 0.15);
      }

      .avatar-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 24px;

          .Upload {
            border:none;
          }

         .avatar-img {
            width: 100%;
            height: 100%;
           // border: 2px solid @secondary-color;
          }

        .avatar-wrapper {
          .avatar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;

            .camera-icon {
              color: white;
              font-size: 24px;
            }
          }

          &:hover .avatar-overlay {
            opacity: 1;
          }
        }

        .basic-info {
          text-align: center;
          //margin-bottom: 16px;

          .student-name {
            font-size: 20px;
            font-weight: bold;
            color: #333;
            margin-bottom: 4px;
          }

          .student-id {
            font-size: 14px;
            color: #666;
          }
        }

        .classes-tags {
          display: flex;
          flex-wrap: wrap;
          justify-content: center;
          gap: 8px;
          margin-bottom: 10px;

          .class-tag {
            background-color: @secondary-color;
            color: @primary-color;
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 12px;
          }
        }

        .edit-btn {
          border-radius: 20px;
          background-color: @secondary-color;
          color: @primary-color;
          border: none;
          transition: all 0.2s ease;

          &:hover {
            transform: translateY(-2px);
          }

          .edit-icon {
            margin-right: 4px;
          }
        }
      }
    }

    .function-list {
      border-radius: 12px;
      overflow: hidden;

      .adm-list-item {
        transition: all 0.3s ease;

        &:hover {
          box-shadow: 0 8px 20px rgba(30, 183, 216, 0.15);
        }

        .list-icon {
          width: 20px;
          height: 20px;
          color: @primary-color;
        }

        .logout-icon {
          color: #ff4d4f;
        }

        .logout-item {
          .adm-list-item-content {
            .adm-list-item-content-main {
              color: #ff4d4f;
            }
          }
        }

        .arrow-icon {
          color: #ccc;
          font-size: 18px;
          font-weight: bold;
        }
      }
    }
  }

  .bottom-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
}
.Upload {
  //border-radius: 50%;
  // width: 100%;
  // height: 100%;
  // background-color: #ccc;
  // border: none;
}

// 弹窗样式调整
.adm-modal {
  .adm-modal-header {
    border-bottom: none;
    padding-bottom: 0;
  }

  .adm-modal-content {
    .adm-form {
      .adm-form-item {
        margin-bottom: 16px;

        .adm-form-item-label {
          color: #666;
          font-size: 14px;
          margin-bottom: 8px;
        }

        .adm-input {
          border: 1px solid #d9d9d9;
          border-radius: 8px;
          padding: 8px 12px;

          &:focus {
            border-color: @primary-color;
            box-shadow: 0 0 0 2px rgba(30, 183, 216, 0.2);
          }
        }
      }
    }
  }
}

// 按钮悬停效果
.btn-hover {
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-2px);
  }
}

// 卡片悬停效果
.card-effect {
  transition: all 0.3s ease;

  &:hover {
    box-shadow: 0 8px 20px rgba(30, 183, 216, 0.15);
  }
}